import 'package:flutter/cupertino.dart';

import 'MyButton.dart';
import 'MyImage.dart';

class Check extends StatelessWidget {
  bool check;

  Check(this.check);

  @override
  Widget build(BuildContext context) {
    return check
        ? LocalImage("check_on.png", width: 20)
        : Button("", height: 17, width: 17, radius: 10, bgColor: Color(0xffccd1d3), margin: EdgeInsets.all(1.5));
  }
}
